﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Collections.Generic;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using TarreOA.TarreOAModels;
using TarreOA.TarreOABLL;

public partial class Flow_Info_WillTransactWork : System.Web.UI.Page {
    public List<FlowFront_WorkInfo> listUnTransact = null;
    public List<FlowFront_WorkInfo> listTransacting = null;
    public List<FlowFront_WorkInfo> listTransacted = null;

    protected void Page_Load(object sender, EventArgs e) {
        if(!Page.IsPostBack) {
            SetList();
        }
    }

    private void SetList() {
        User curLoginUser = (User) Session["user"];
        FlowFront_WorkInfo_Service fw_Service = new FlowFront_WorkInfo_Service();
        listUnTransact = fw_Service.FindUnInceptWork(curLoginUser.LoginName);
        listTransacted = fw_Service.FindTransacedWork(curLoginUser.LoginName);
        listTransacting = fw_Service.FindTransactingWork(curLoginUser.LoginName);
    }
}
